package cn.kgc.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: mosin
 * @version: v1.0  2022/11/1
 */
@Controller
@RequestMapping("/html")
public class HtmlController {

    @RequestMapping("temp")
    public String test1(){
        return  "hello";
    }

    @RequestMapping("static")
    public String test2(){
        return  "/hello.html";
    }


    @RequestMapping("static2")
    public String test3(){
        return  "redirect:/hello.html";
    }

}
